package com.nav.games.app.usermgmt;

import javax.servlet.http.HttpServletRequest;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@Controller
@RequestMapping("/logout")
public class LogoutAction {
	@RequestMapping(method = RequestMethod.GET)
	public String execute(HttpServletRequest request) {
		request.getSession().removeAttribute("user");
		return "top";
	}
}
